import request from '@/utils/request'

// 查询文档接口信息列表
export function listInterface(query) {
  return request({
    url: '/submit/interface/list',
    method: 'get',
    params: query
  })
}

// 查询文档接口信息详细
export function getInterface(interfaceId) {
  return request({
    url: '/submit/interface/' + interfaceId,
    method: 'get'
  })
}

// 新增文档接口信息
export function addInterface(data) {
  return request({
    url: '/submit/interface',
    method: 'post',
    data: data
  })
}

// 修改文档接口信息
export function updateInterface(data) {
  return request({
    url: '/submit/interface',
    method: 'put',
    data: data
  })
}

// 删除文档接口信息
export function delInterface(interfaceId) {
  return request({
    url: '/submit/interface/' + interfaceId,
    method: 'delete'
  })
}
